package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单投诉
 * @TableName order_complaint
 */
@TableName(value ="order_complaint")
@Data
public class OrderComplaint implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * order_id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * spu_id
     */
    @TableField(value = "spu_id")
    private Long spuId;

    /**
     * 投诉人用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 投诉内容
     */
    @TableField(value = "complaint_content")
    private String complaintContent;

    /**
     * 投诉图片路径，多张图片以逗号分隔
     */
    @TableField(value = "complaint_images")
    private String complaintImages;

    /**
     * 状态[0->待处理；1->处理中；2->已完成；3->已撤销；4->待申诉；]
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 处理时间
     */
    @TableField(value = "handle_time")
    private Date handleTime;

    /**
     * 处理人ID
     */
    @TableField(value = "handle_user")
    private Long handleUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}